package com.zc.operator.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 场站电区间价设置对象 charge_station_price
 *
 * @author ruoyi
 * @date 2023-05-17
 */
public class ChargeStationPrice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增主键 */
    private Long id;

    /**
     * 类型ID
     */
    private Long priceTypeId;

    /** 类型编号 */
    @Excel(name = "类型编号")
    private String priceTypeCode;

    /** 区间开始时间 */
    @JsonFormat(pattern = "HH:mm:ss")
    @Excel(name = "区间开始时间", width = 30, dateFormat = "HH:mm:ss")
    private Date startTime;

    private String startTimeString;

    /** 区间结束时间 */
    @JsonFormat(pattern = "HH:mm:ss")
    @Excel(name = "区间结束时间", width = 30, dateFormat = "HH:mm:ss")
    private Date endTime;

    /** 电价（现价） */
    @Excel(name = "电价")
    private BigDecimal electricCharge;

    /** 原价 */
    @Excel(name = "原价")
    private BigDecimal originalPrice;

    /** 服务费 */
    @Excel(name = "服务费")
    private BigDecimal serviceFee;

    /** 停车费 */
    @Excel(name = "停车费")
    private BigDecimal stopFee;

    /** 电流类型;1-直流;2-交流;2-交直流 */
    private String terminalType;

    /** 创建人 */
//    @Excel(name = "创建人")
    private String createName;

    /** 修改人 */
//    @Excel(name = "修改人")
    private String updateName;

    private String stationCode;

    private String currentType;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }

    public Date getStartTime()
    {
        return startTime;
    }
    public void setEndTime(Date endTime)
    {
        this.endTime = endTime;
    }

    public Date getEndTime()
    {
        return endTime;
    }
    public void setElectricCharge(BigDecimal electricCharge)
    {
        this.electricCharge = electricCharge;
    }

    public BigDecimal getElectricCharge()
    {
        return electricCharge;
    }
    public void setOriginalPrice(BigDecimal originalPrice)
    {
        this.originalPrice = originalPrice;
    }

    public BigDecimal getOriginalPrice()
    {
        return originalPrice;
    }
    public void setServiceFee(BigDecimal serviceFee)
    {
        this.serviceFee = serviceFee;
    }

    public BigDecimal getServiceFee()
    {
        return serviceFee;
    }
    public void setCreateName(String createName)
    {
        this.createName = createName;
    }

    public String getCreateName()
    {
        return createName;
    }
    public void setUpdateName(String updateName)
    {
        this.updateName = updateName;
    }

    public String getUpdateName()
    {
        return updateName;
    }

    public String getStartTimeString() {
        return startTimeString;
    }

    public BigDecimal getStopFee() {
        return stopFee;
    }

    public void setStopFee(BigDecimal stopFee) {
        this.stopFee = stopFee;
    }

    public void setStartTimeString(String startTimeString) {
        this.startTimeString = startTimeString;
    }

    public String getTerminalType() {
        return terminalType;
    }

    public void setTerminalType(String terminalType) {
        this.terminalType = terminalType;
    }

    public String getPriceTypeCode() {
        return priceTypeCode;
    }

    public void setPriceTypeCode(String priceTypeCode) {
        this.priceTypeCode = priceTypeCode;
    }

    public Long getPriceTypeId() {
        return priceTypeId;
    }

    public void setPriceTypeId(Long priceTypeId) {
        this.priceTypeId = priceTypeId;
    }

    public String getStationCode() {
        return stationCode;
    }

    public void setStationCode(String stationCode) {
        this.stationCode = stationCode;
    }

    public ChargeStationPrice(){

    }

    public ChargeStationPrice(String stationCode,String startTimeString){
        this.stationCode = stationCode;
        this.startTimeString = startTimeString;
    }

    public String getCurrentType() {
        return currentType;
    }

    public void setCurrentType(String currentType) {
        this.currentType = currentType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("electricCharge", getElectricCharge())
            .append("originalPrice", getOriginalPrice())
            .append("serviceFee", getServiceFee())
            .append("createName", getCreateName())
            .append("createTime", getCreateTime())
            .append("updateName", getUpdateName())
            .append("updateTime", getUpdateTime())
            .append("priceTypeCode", getPriceTypeCode())
            .append("priceTypeId", getPriceTypeId())
            .toString();
    }
}
